package kr.hkit.powerjava.chapter14.work;

import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.SwingConstants;

public class ResultField extends JPanel{
	private JTextField textField;

	/**
	 * Create the panel.
	 */
	public ResultField() {

		initialize();
	}
	private void initialize() {
		
		textField = new JTextField();
		textField.setHorizontalAlignment(SwingConstants.CENTER);
		add(textField);
		textField.setColumns(25);
	}

	public String getTextField() {
		return textField.getText();
	}
	public void setTextField(String text) {
		this.textField.setText(text);
	}
}
